import { ADD, SUBTRACT } from "./contents";
const createIncrementAction = (data) => ({
  type: ADD,
  data,
});
const createDecrementAction = (data) => ({
  type: SUBTRACT,
  data,
});
const createIncrementAsyncAction=(data,time)=>{
  return (dispatch)=>{
    setTimeout(() => {
      dispatch(createIncrementAction(data));
    }, time);
  }
}

export {
  createIncrementAction,
  createDecrementAction,
  createIncrementAsyncAction,
};




